<?php

namespace app\adm\model;

use think\Collection;
use think\db\BaseQuery;
use think\Model;

/**
 * 岗位管理
 */
class PositionModel extends Model
{
    protected $name = 'position';


    /**
     * 列表
     * @return array|Collection|BaseQuery[]
     */
    public function list($where = [], $field = '*')
    {
        return $this->db()->field('id,title as name')
            ->where([['status', '=', 1], ['id', '>', 1]])
            ->select();

    }
}